var customElementsPackage=function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,u=[];si.last(o.SUPER_UPSCALE_MODELS))}}function g(t,e){var n=t*e;return n>o.imageScaleDefaults[o.imageQuality.HIGH].size?o.imageQuality.HIGH:n>o.imageScaleDefaults[o.imageQuality.MEDIUM].size?o.imageQuality.MEDIUM:n>o.imageScaleDefaults[o.imageQuality.LOW].size?o.imageQuality.LOW:o.imageQuality.TINY}function m(t,e){var n=Math.pow(10,e||0);return(t*n/n).toFixed(parseInt(e,10))}t.exports={populateGlobalFeatureSupport:function(t){void 0===t&&(t=""),"undefined"!=typeof window&&"undefined"!=typeof navigator?(r.checkSupportByUserAgent(navigator.userAgent),r.checkSupportByFeatureDetection(),a.setFeature("isObjectFitBrowser","objectFit"in window.document.documentElement.style)):r.checkSupportByUserAgent(t)},isWEBPBrowserSupport:r.isWEBPBrowserSupport,isObjectFitBrowserSupport:function(){return a.getFeature("isObjectFitBrowser")},isImageTransformApplicable:function(t){return s(t)&&!u(t)},isValidRequest:function(t,e,n){return n&&e&&!(!(r=e.id)||!r.trim()||"none"===r.toLowerCase())&&i.includes(o.fittingTypes,t);var r},isImageTypeSupported:s,isExternalUrl:u,isWEBP:c,isSEOBot:function(t){return t&&t.isSEOBot||!1},getFileType:function(t){return function(t){return i.includes([o.fileType.JPEG,o.fileType.JPG,o.fileType.JPE],l(t))}(t)?o.fileType.JPG:function(t){return i.includes(["png"],l(t))}(t)?o.fileType.PNG:c(t)?o.fileType.WEBP:o.fileType.UNRECOGNIZED},getFileExtension:l,getFileName:function(t,e){var n=/\.([^.]*)$/;if("string"==typeof e&&e.length){var r=["/","\\","?","<",">","|","“",":",'"'].map(encodeURIComponent),a=new RegExp("("+r.concat(["\\.","\\*"]).join("|")+")","g"),s=e,c=e.match(n);return c&&i.includes(o.supportedExtensions,c[1])&&(s=e.replace(n,"")),encodeURIComponent(s).replace(a,"_")}var u=t.match(/\/(.*?)$/);return(u?u[1]:t).replace(n,"")},getAlignedRect:function(t,e,n){var r,i;switch(n){case o.alignTypes.CENTER:r=Math.max(0,(t.width-e.width)/2),i=Math.max(0,(t.height-e.height)/2);break;case o.alignTypes.TOP:r=Math.max(0,(t.width-e.width)/2),i=0;break;case o.alignTypes.TOP_LEFT:r=0,i=0;break;case o.alignTypes.TOP_RIGHT:r=Math.max(0,t.width-e.width),i=0;break;case o.alignTypes.BOTTOM:r=Math.max(0,(t.width-e.width)/2),i=Math.max(0,t.height-e.height);break;case o.alignTypes.BOTTOM_LEFT:r=0,i=Math.max(0,t.height-e.height);break;case o.alignTypes.BOTTOM_RIGHT:r=Math.max(0,t.width-e.width),i=Math.max(0,t.height-e.height);break;case o.alignTypes.LEFT:r=0,i=Math.max(0,(t.height-e.height)/2);break;case o.alignTypes.RIGHT:r=Math.max(0,t.width-e.width),i=Math.max(0,(t.height-e.height)/2)}return{x:t.x?t.x+r:r,y:t.y?t.y+i:i,width:Math.min(t.width,e.width),height:Math.min(t.height,e.height)}},getOverlappingRect:function(t,e){var n=Math.max(0,Math.min(t.width,e.x+e.width)-Math.max(0,e.x)),r=Math.max(0,Math.min(t.height,e.y+e.height)-Math.max(0,e.y));return n&&r&&(t.width!==n||t.height!==r)?{x:Math.max(0,e.x),y:Math.max(0,e.y),width:n,height:r}:null},getScaleFactor:h,getTransformData:function(t,e,n,r,i,a){var s=function(t,e,n,r,i){var a,s,c;if(a=h(t,e,n,r,i),i===o.transformTypes.FILL?(s=n,c=r):i===o.transformTypes.FIT&&(s=t*a,c=e*a),s*c>o.SAFE_TRANSFORMED_AREA){var u=Math.sqrt(o.SAFE_TRANSFORMED_AREA/(s*c));a=h(t,e,s*=u,c*=u,i)}return{scaleFactor:a,width:s,height:c}}(t=t||n.width,e=e||n.height,n.width*r,n.height*r,i),c=s.scaleFactor;return function(t,e,n,r,i,a,s){var c,u,l=function(t,e,n,r){return{classic:f,auto:d,super:p}[i](t,e,a)}(t,e),h=l.optimizedScaleFactor,g=l.upscaleMethodValue,m=l.forceUSM;if(a<=h)return{width:n,height:r,scaleFactor:a,upscaleMethodValue:g,forceUSM:m,cssUpscaleNeeded:!1};switch(s){case o.transformTypes.FILL:c=n*(h/a),u=r*(h/a);break;case o.transformTypes.FIT:c=t*h,u=e*h}return{width:c,height:u,scaleFactor:h,upscaleMethodValue:g,forceUSM:m,cssUpscaleNeeded:!0}}(t,e,s.width,s.height,a,c,i)},getDevicePixelRatio:function(t){return Math.min(t.pixelAspectRatio||1,o.MAX_DEVICE_PIXEL_RATIO)},getAlignment:function(t){return o.alignTypesMap[t.alignment]||o.alignTypesMap[o.alignTypes.CENTER]},getPreferredImageQuality:function(t,e){return o.imageScaleDefaults[g(t,e)].quality},getDimension:function(t,e,n,r,i){var o=h(t,e,n,r,i);return{width:Math.round(t*o),height:Math.round(e*o)}},getFocalPoint:function(t){var e=null;return"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:m(Math.max(0,Math.min(100,t.x))/100,2),y:m(Math.max(0,Math.min(100,t.y))/100,2)}),e},getUpscaleString:function(t){return t&&t.upscaleMethod&&"string"==typeof t.upscaleMethod&&o.upscaleMethods[t.upscaleMethod.toUpperCase()]||o.upscaleMethods.AUTO},roundToFixed:m}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={assign:function(){for(var t=arguments[0]||{},e=Array.prototype.slice.call(arguments,1,arguments.length),n=0;n-1:!(!t||"object"!==r(t))&&Object.keys(t).some(function(n){return t[n]===e})},last:function(t){return t[t.length-1]},template:function(t){return function(e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n=n.replace(new RegExp("\\${"+r+"}","g"),e[r]));return n}}}},function(t,e,n){"use strict";var r={isWEBP:{lossless:!1,lossy:!1,alpha:!1,animation:!1},isObjectFitBrowser:!0};t.exports={getFeature:function(t){return r[t]},setFeature:function(t,e){r[t]=e}}},function(t,e,n){"use strict";var r=n(1),i=n(7),o=n(8);t.exports=function(t,e,n,a){var s=r.isSEOBot(a),c=r.getFileType(e.id),u=r.getFileName(e.id,e.name),l=r.getFileExtension(e.id),h=!s&&r.isWEBPBrowserSupport(c),f=s?1:r.getDevicePixelRatio(n),d={fileName:u,fileExtension:l,fileType:c,isWEBPSupport:h,fittingType:t,preferredExtension:h?"webp":l,src:{id:e.id,width:e.width,height:e.height,isCropped:!1},focalPoint:{x:e.focalPoint&&e.focalPoint.x,y:e.focalPoint&&e.focalPoint.y},parts:[],devicePixelRatio:f,quality:0,upscaleMethod:r.getUpscaleString(a),progressive:!0,watermark:"",unsharpMask:{},filters:{}};return r.isImageTransformApplicable(e.id)&&(i.setTransformParts(d,e,n),o.setTransformOptions(d,a)),d}},function(t,e,n){"use strict";var r=n(6),i=n(3),o=n(0);function a(t){var e=i.getFeature("isWEBP"),n=new window.Image;n.onload=function(){e[t]=n.width>0&&n.height>0,i.setFeature("isWEBP",e)},n.onerror=function(){e[t]=!1,i.setFeature("isWEBP",e)},n.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[t]}t.exports={checkSupportByUserAgent:function(t){if(t){var e,n=r(t),a=n.browser,s=n.os,c=parseFloat(a.version),u=parseFloat(s.version),l=new RegExp(/AppleWebKit\/([\d.]+)/),h=null===l.exec(t)?null:parseFloat(l.exec(t)[1]),f=function(t,e,n,r,i){var o=!t.phone&&!t.tablet&&n.chrome&&r>=23,a=t.android&&(t.phone||t.tablet)&&n.webkit&&n.chrome&&r>=25,s=t.android&&i<535&&(t.phone||t.tablet)&&e>=4.2&&n.webkit&&!n.safari,c=n.edge&&r>=18,u=!t.firefoxos&&n.firefox&&!n.webkit&&r>=65;return!!(o||a||s||c||u)}(s,u,a,c,h);i.setFeature("isWEBP",((e={})[o.webp.LOSSY]=function(t,e,n,r,i){var o=!t.phone&&!t.tablet&&n.chrome&&r>=17,a=t.android&&(t.phone||t.tablet)&&n.webkit&&n.chrome&&r>=25,s=t.android&&i<535&&(t.phone||t.tablet)&&e>=4&&n.webkit,c=n.edge&&r>=18,u=!t.firefoxos&&n.firefox&&!n.webkit&&r>=65;return!!(o||a||s||c||u)}(s,u,a,c,h),e[o.webp.LOSSLESS]=f,e[o.webp.ALPHA]=f,e[o.webp.ANIMATION]=function(t,e,n,r){var i=!t.ios&&n.chrome&&r>=32,o=n.edge&&r>=18,a=!t.firefoxos&&n.firefox&&!n.webkit&&r>=65;return!!(i||o||a)}(s,0,a,c),e))}},checkSupportByFeatureDetection:function(){a(o.webp.LOSSY),a(o.webp.LOSSLESS),a(o.webp.ALPHA),a(o.webp.ANIMATION)},isWEBPBrowserSupport:function(t){var e=i.getFeature("isWEBP"),n=t===o.fileType.JPG&&e[o.webp.LOSSY],r=t===o.fileType.PNG&&e[o.webp.LOSSLESS],a=t===o.fileType.PNG&&e[o.webp.ALPHA];return n||r&&a}}},function(t,e,n){t.exports=function(){"use strict"; /*! * Based on Zepto's detect module - https://github.com/madrobby/zepto/blob/master/src/detect.js#files * Zepto.js may be freely distributed under the MIT license. See: https://github.com/madrobby/zepto/blob/master/MIT-LICENSE * * note - MS Edge detection was added here, which Zepto does not have. */return function(t){var e={},n={};if(!t)return{browser:n,os:e};var r=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),i=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=!!t.match(/\(Macintosh\; Intel /),a=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),c=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),u=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),l=t.match(/Windows Phone ([\d.]+)/),h=u&&t.match(/TouchPad/),f=t.match(/Kindle\/([\d.]+)/),d=t.match(/Silk\/([\d._]+)/),p=t.match(/(BlackBerry).*Version\/([\d.]+)/),g=t.match(/(BB10).*Version\/([\d.]+)/),m=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),b=t.match(/PlayBook/),v=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),y=t.match(/Firefox\/([\d.]+)/),_=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),w=!v&&t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),T=w||t.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/),E=t.match(/Edge\/(\d{2,}\.[\d\w]+)$/),A=t.match(/Opera Mini/);return n.webkit=r&&!E,n.webkit&&(n.version=r[1]),i&&(e.android=!0,e.version=i[2]),c&&!s&&(e.ios=e.iphone=!0,e.version=c[2].replace(/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2].replace(/_/g,".")),s&&(e.ios=e.ipod=!0,e.version=s[3]?s[3].replace(/_/g,"."):null),l&&(e.wp=!0,e.version=l[1]),u&&(e.webos=!0,e.version=u[2]),h&&(e.touchpad=!0),p&&(e.blackberry=!0,e.version=p[2]),g&&(e.bb10=!0,e.version=g[2]),m&&(e.rimtabletos=!0,e.version=m[2]),b&&(n.playbook=!0),f&&(e.kindle=!0,e.version=f[1]),d&&(n.silk=!0,n.version=d[1]),!d&&e.android&&t.match(/Kindle Fire/)&&(n.silk=!0),v&&!E&&(n.chrome=!0,n.version=v[1]),y&&!E&&(n.firefox=!0,n.version=y[1]),_&&(n.ie=!0,n.version=_[1]),T&&(o||e.ios)&&(n.safari=!0,o&&(n.version=T[1])),w&&(n.webview=!0),E&&(n.edge=!0,n.version=E[1]),A&&(n.operaMini=!0),e.tablet=!!(a||b||i&&!t.match(/Mobile/)||y&&t.match(/Tablet/)||(_||E)&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(i||c||u||p||g||v&&t.match(/Android/)||v&&t.match(/CriOS\/([\d.]+)/)||y&&t.match(/Mobile/)||_&&t.match(/Touch/))),e.mac=o,e.googleBot=!!t.match(/Googlebot\/2.1/),{browser:n,os:e}}}()},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(1);function a(t,e){var n=o.getTransformData(t.src.width,t.src.height,e,t.devicePixelRatio,i.transformTypes.FIT,t.upscaleMethod);return{transformType:i.transformTypes.FILL,width:Math.round(n.width),height:Math.round(n.height),alignment:i.alignTypesMap.center,upscale:n.scaleFactor>1,forceUSM:n.forceUSM,scaleFactor:n.scaleFactor,cssUpscaleNeeded:n.cssUpscaleNeeded,upscaleMethodValue:n.upscaleMethodValue}}function s(t){return{transformType:i.transformTypes.CROP,x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}t.exports={setTransformParts:function(t,e,n){var c;switch(e.crop&&(c=o.getOverlappingRect(e,e.crop))&&(t.src.width=c.width,t.src.height=c.height,t.src.cropped=!0,t.parts.push(s(c))),t.fittingType){case i.fittingTypes.SCALE_TO_FIT:case i.fittingTypes.LEGACY_FIT_WIDTH:case i.fittingTypes.LEGACY_FIT_HEIGHT:case i.fittingTypes.LEGACY_FULL:case i.fittingTypes.FIT_AND_TILE:case i.fittingTypes.LEGACY_BG_FIT_AND_TILE:case i.fittingTypes.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case i.fittingTypes.LEGACY_BG_FIT_AND_TILE_VERTICAL:case i.fittingTypes.LEGACY_BG_NORMAL:t.parts.push(a(t,n));break;case i.fittingTypes.SCALE_TO_FILL:t.parts.push(function(t,e){var n=o.getTransformData(t.src.width,t.src.height,e,t.devicePixelRatio,i.transformTypes.FILL,t.upscaleMethod),r=o.getFocalPoint(t.focalPoint);return{transformType:r?i.transformTypes.FILL_FOCAL:i.transformTypes.FILL,width:Math.round(n.width),height:Math.round(n.height),alignment:o.getAlignment(e),focalPointX:r&&r.x,focalPointY:r&&r.y,upscale:n.scaleFactor>1,forceUSM:n.forceUSM,scaleFactor:n.scaleFactor,cssUpscaleNeeded:n.cssUpscaleNeeded,upscaleMethodValue:n.upscaleMethodValue}}(t,n));break;case i.fittingTypes.STRETCH:t.parts.push(function(t,e){var n=o.getScaleFactor(t.src.width,t.src.height,e.width,e.height,i.transformTypes.FILL),s=r.assign({},e);return s.width=t.src.width*n,s.height=t.src.height*n,a(t,s)}(t,n));break;case i.fittingTypes.TILE_HORIZONTAL:case i.fittingTypes.TILE_VERTICAL:case i.fittingTypes.TILE:case i.fittingTypes.LEGACY_ORIGINAL_SIZE:case i.fittingTypes.ORIGINAL_SIZE:c=o.getAlignedRect(t.src,n,n.alignment),t.src.isCropped?(r.assign(t.parts[0],c),t.src.width=c.width,t.src.height=c.height):t.parts.push(s(c));break;case i.fittingTypes.LEGACY_STRIP_TILE_HORIZONTAL:case i.fittingTypes.LEGACY_STRIP_TILE_VERTICAL:case i.fittingTypes.LEGACY_STRIP_TILE:case i.fittingTypes.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:i.transformTypes.LEGACY_CROP,width:Math.round(t.width),height:Math.round(t.height),alignment:o.getAlignment(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(n));break;case i.fittingTypes.LEGACY_STRIP_SCALE_TO_FIT:case i.fittingTypes.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:i.transformTypes.FIT,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(n));break;case i.fittingTypes.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:i.transformTypes.LEGACY_FILL,width:Math.round(t.width),height:Math.round(t.height),alignment:o.getAlignment(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(n))}}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(1);function a(t,e,n){return!isNaN(t)&&"number"==typeof t&&0!==t&&t>=e&&t<=n}t.exports={setTransformOptions:function(t,e){e=e||{},t.quality=function(t,e){var n=t.fileType===i.fileType.PNG&&t.isWEBPSupport;if(t.fileType===i.fileType.JPG||n){var a=r.last(t.parts),s=o.getPreferredImageQuality(a.width,a.height),c=e.quality&&e.quality>=5&&e.quality<=90?e.quality:s;return c=n?c+5:c,parseInt(c,10)}return 0}(t,e),t.progressive=!1!==e.progressive,t.watermark=e.watermark,t.unsharpMask=function(t,e){var n;return function(t){t=t||{};var e=!isNaN(t.radius)&&"number"==typeof t.radius&&t.radius>=.1&&t.radius<=500,n=!isNaN(t.amount)&&"number"==typeof t.amount&&t.amount>=0&&t.amount<=10,r=!isNaN(t.threshold)&&"number"==typeof t.threshold&&t.threshold>=0&&t.threshold<=255;return e&&n&&r}(e.unsharpMask)?n={radius:e.unsharpMask.radius,amount:e.unsharpMask.amount,threshold:e.unsharpMask.threshold}:function(t){return t=t||{},!isNaN(t.radius)&&"number"==typeof t.radius&&0===t.radius&&!isNaN(t.amount)&&"number"==typeof t.amount&&0===t.amount&&!isNaN(t.threshold)&&"number"==typeof t.threshold&&0===t.threshold}(e.unsharpMask)||function(t){var e=r.last(t.parts);return!(e.scaleFactor>=1)||e.forceUSM}(t)&&(n=i.defaultUSM),n&&(n.radius=o.roundToFixed(n.radius,2),n.amount=o.roundToFixed(n.amount,2),n.threshold=o.roundToFixed(n.threshold,2)),n}(t,e),t.filters=function(t){var e=t.filters||{},n={};return a(e[i.imageFilters.CONTRAST],-100,100)&&(n[i.imageFilters.CONTRAST]=e[i.imageFilters.CONTRAST]),a(e[i.imageFilters.BRIGHTNESS],-100,100)&&(n[i.imageFilters.BRIGHTNESS]=e[i.imageFilters.BRIGHTNESS]),a(e[i.imageFilters.SATURATION],-100,100)&&(n[i.imageFilters.SATURATION]=e[i.imageFilters.SATURATION]),a(e[i.imageFilters.HUE],-180,180)&&(n[i.imageFilters.HUE]=e[i.imageFilters.HUE]),a(e[i.imageFilters.BLUR],0,100)&&(n[i.imageFilters.BLUR]=e[i.imageFilters.BLUR]),n}(e)}}},function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(10),a=n(4);t.exports=function(t,e,n,s,c){var u=r.emptyData.uri;return i.isImageTransformApplicable(e.id)?(c=c||a(t,e,n,s,c),u=o.getImageURI(c)):u=e.id,u}},function(t,e,n){"use strict";var r,i=n(2),o=n(0),a=i.template("fit/w_${width},h_${height}"),s=i.template("fill/w_${width},h_${height},al_${alignment}"),c=i.template("fill/w_${width},h_${height},fp_${focalPointX}_${focalPointY}"),u=i.template("crop/x_${x},y_${y},w_${width},h_${height}"),l=i.template("crop/w_${width},h_${height},al_${alignment}"),h=i.template("fill/w_${width},h_${height},al_${alignment}"),f=i.template(",lg_${upscaleMethodValue}"),d=i.template(",q_${quality}"),p=i.template(",usm_${radius}_${amount}_${threshold}"),g=i.template(",bl"),m=i.template(",wm_${watermark}"),b=((r={})[o.imageFilters.CONTRAST]=i.template(",con_${contrast}"),r[o.imageFilters.BRIGHTNESS]=i.template(",br_${brightness}"),r[o.imageFilters.SATURATION]=i.template(",sat_${saturation}"),r[o.imageFilters.HUE]=i.template(",hue_${hue}"),r[o.imageFilters.BLUR]=i.template(",blur_${blur}"),r);t.exports={getImageURI:function(t){var e=[];t.parts.forEach(function(t){switch(t.transformType){case o.transformTypes.CROP:e.push(u(t));break;case o.transformTypes.LEGACY_CROP:e.push(l(t));break;case o.transformTypes.LEGACY_FILL:var n=h(t);t.upscale&&(n+=f(t)),e.push(n);break;case o.transformTypes.FIT:var r=a(t);t.upscale&&(r+=f(t)),e.push(r);break;case o.transformTypes.FILL:var i=s(t);t.upscale&&(i+=f(t)),e.push(i);break;case o.transformTypes.FILL_FOCAL:var d=c(t);t.upscale&&(d+=f(t)),e.push(d)}});var n=e.join("/");return t.quality&&(n+=d(t)),t.unsharpMask&&(n+=p(t.unsharpMask)),t.progressive||(n+=g(t)),t.watermark&&(n+=m(t)),t.filters&&(n+=Object.keys(t.filters).map(function(e){return b[e](t.filters)}).join("")),t.src.id+"/"+o.API_VERSION+"/"+n+"/"+t.fileName+"."+t.preferredExtension}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(1),a=n(12),s=n(4),c=n(9);o.populateGlobalFeatureSupport(),t.exports={populateGlobalFeatureSupport:o.populateGlobalFeatureSupport,getData:function(t,e,n,u){var l={};if(o.isValidRequest(t,e,n)){var h=s(t,e,n,u);l.uri=c(t,e,n,u,h),r.assign(l,a.getAttributes(h,n))}else l=i.emptyData;return l},fittingTypes:i.fittingTypes,alignTypes:i.alignTypes,htmlTag:i.htmlTag,upscaleMethods:i.upscaleMethods}},function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(13),a=n(14),s=n(15),c=n(16);t.exports={getAttributes:function(t,e){return(e.htmlTag===r.htmlTag.BG?o:e.htmlTag===r.htmlTag.SVG?s:i.isObjectFitBrowserSupport()?a:c).get(t,e)}}},function(t,e,n){"use strict";var r=n(0);t.exports={get:function(t,e){var n={css:{container:{}}},i=n.css,o=r.alignTypes,a=t.fittingType,s=r.fittingTypes;switch(a){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.LEGACY_STRIP_ORIGINAL_SIZE:i.container.backgroundSize="auto",i.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FIT:case s.LEGACY_STRIP_SCALE_TO_FIT:i.container.backgroundSize="contain",i.container.backgroundRepeat="no-repeat";break;case s.STRETCH:i.container.backgroundSize="100% 100%",i.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FILL:case s.LEGACY_STRIP_SCALE_TO_FILL:i.container.backgroundSize="cover",i.container.backgroundRepeat="no-repeat";break;case s.TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_HORIZONTAL:i.container.backgroundSize="auto",i.container.backgroundRepeat="repeat-x";break;case s.TILE_VERTICAL:case s.LEGACY_STRIP_TILE_VERTICAL:i.container.backgroundSize="auto",i.container.backgroundRepeat="repeat-y";break;case s.TILE:case s.LEGACY_STRIP_TILE:i.container.backgroundSize="auto",i.container.backgroundRepeat="repeat";break;case s.FIT_AND_TILE:case s.LEGACY_STRIP_FIT_AND_TILE:i.container.backgroundSize="contain",i.container.backgroundRepeat="repeat";break;case s.LEGACY_BG_FIT_AND_TILE:i.container.backgroundSize="auto",i.container.backgroundRepeat="repeat";break;case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:i.container.backgroundSize="auto",i.container.backgroundRepeat="repeat-x";break;case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:i.container.backgroundSize="auto",i.container.backgroundRepeat="repeat-y";break;case s.LEGACY_BG_NORMAL:i.container.backgroundSize="auto",i.container.backgroundRepeat="no-repeat"}switch(e.alignment){case o.CENTER:i.container.backgroundPosition="center center";break;case o.LEFT:i.container.backgroundPosition="left center";break;case o.RIGHT:i.container.backgroundPosition="right center";break;case o.TOP:i.container.backgroundPosition="center top";break;case o.BOTTOM:i.container.backgroundPosition="center bottom";break;case o.TOP_RIGHT:i.container.backgroundPosition="right top";break;case o.TOP_LEFT:i.container.backgroundPosition="left top";break;case o.BOTTOM_RIGHT:i.container.backgroundPosition="right bottom";break;case o.BOTTOM_LEFT:i.container.backgroundPosition="left bottom"}return n}}},function(t,e,n){"use strict";var r=n(0);t.exports={get:function(t,e){var n={css:{container:{},img:{}}},i=n.css,o=t.fittingType,a=e.alignment,s=r.fittingTypes,c=r.alignTypes;switch(i.container.position="relative",o){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:t.parts&&t.parts.length?(i.img.width=t.parts[0].width,i.img.height=t.parts[0].height):(i.img.width=t.src.width,i.img.height=t.src.height);break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:i.img.width=e.width,i.img.height=e.height,i.img.objectFit="contain";break;case s.STRETCH:i.img.width=e.width,i.img.height=e.height,i.img.objectFit="fill";break;case s.SCALE_TO_FILL:i.img.width=e.width,i.img.height=e.height,i.img.objectFit="cover"}if(i.img.width!==e.width||i.img.height!==e.height){var u=Math.round((e.height-i.img.height)/2),l=Math.round((e.width-i.img.width)/2);switch(i.img.position="absolute",i.img.top="auto",i.img.right="auto",i.img.bottom="auto",i.img.left="auto",a){default:case c.CENTER:i.img.width=e.width,i.img.height=e.height,i.img.objectFit="none";break;case c.LEFT:i.img.left=0,i.img.top=u;break;case c.RIGHT:i.img.right=0,i.img.top=u;break;case c.TOP:i.img.left=l,i.img.top=0;break;case c.BOTTOM:i.img.left=l,i.img.bottom=0;break;case c.TOP_RIGHT:i.img.right=0,i.img.top=0;break;case c.TOP_LEFT:i.img.left=0,i.img.top=0;break;case c.BOTTOM_RIGHT:i.img.right=0,i.img.bottom=0;break;case c.BOTTOM_LEFT:i.img.left=0,i.img.bottom=0}}return n}}},function(t,e,n){"use strict";var r=n(0),i=n(1);t.exports={get:function(t,e){var n,o={css:{container:{}},attr:{container:{},img:{}}},a=o.css,s=o.attr,c=t.fittingType,u=r.fittingTypes,l=e.alignment,h=r.alignTypes,f=t.src.width,d=t.src.height;switch(a.container.position="relative",c){case u.ORIGINAL_SIZE:case u.LEGACY_ORIGINAL_SIZE:case u.TILE:t.parts&&t.parts.length?(s.img.width=t.parts[0].width,s.img.height=t.parts[0].height):(s.img.width=f,s.img.height=d),s.img.preserveAspectRatio="xMidYMid slice";break;case u.SCALE_TO_FIT:case u.LEGACY_FIT_WIDTH:case u.LEGACY_FIT_HEIGHT:case u.LEGACY_FULL:s.img.width="100%",s.img.height="100%",s.img.transform="",s.img.preserveAspectRatio="";break;case u.STRETCH:s.img.width=e.width,s.img.height=e.height,s.img.x=0,s.img.y=0,s.img.transform="",s.img.preserveAspectRatio="none";break;case u.SCALE_TO_FILL:i.isImageTransformApplicable(t.src.id)?(s.img.width=e.width,s.img.height=e.height):(n=i.getDimension(f,d,e.width,e.height,r.transformTypes.FILL),s.img.width=n.width,s.img.height=n.height),s.img.x=0,s.img.y=0,s.img.transform="",s.img.preserveAspectRatio="xMidYMid slice"}if(s.img.width!==e.width||s.img.height!==e.height){var p,g,m=0,b=0;c===u.TILE?(p=e.width%s.img.width,g=e.height%s.img.height):(p=e.width-s.img.width,g=e.height-s.img.height);var v=Math.round(p/2),y=Math.round(g/2);switch(l){case h.TOP_LEFT:m=0,b=0;break;case h.TOP:m=v,b=0;break;case h.TOP_RIGHT:m=p,b=0;break;case h.LEFT:m=0,b=y;break;case h.CENTER:m=v,b=y;break;case h.RIGHT:m=p,b=y;break;case h.BOTTOM_LEFT:m=0,b=g;break;case h.BOTTOM:m=v,b=g;break;case h.BOTTOM_RIGHT:m=p,b=g}s.img.x=m,s.img.y=b}return s.container.width=e.width,s.container.height=e.height,s.container.viewBox=[0,0,e.width,e.height].join(" "),o}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(1);t.exports={get:function(t,e){var n,a,s,c={css:{container:{},img:{}}},u=c.css,l=t.fittingType,h=i.fittingTypes,f=e.alignment,d=i.alignTypes;switch(t.parts&&t.parts.length?(n=t.parts[0].width,a=t.parts[0].height):(n=t.src.width,a=t.src.height),u.img.display="block",u.container.position="relative",u.img.position="absolute",u.img.top="auto",u.img.right="auto",u.img.bottom="auto",u.img.left="auto",l){case h.ORIGINAL_SIZE:case h.LEGACY_ORIGINAL_SIZE:u.img.width=n,u.img.height=a;break;case h.SCALE_TO_FIT:case h.LEGACY_FIT_WIDTH:case h.LEGACY_FIT_HEIGHT:case h.LEGACY_FULL:s=o.getDimension(n,a,e.width,e.height,i.transformTypes.FIT),r.assign(u.img,s);break;case h.STRETCH:u.img.width=e.width,u.img.height=e.height;break;case h.SCALE_TO_FILL:var p=t.src.id;o.isImageTypeSupported(p)||o.isExternalUrl(p)?(u.img.width=e.width,u.img.height=e.height):(s=o.getDimension(n,a,e.width,e.height,i.transformTypes.FILL),r.assign(u.img,s),u.container.overflow="hidden")}if(u.img.width!==e.width||u.img.height!==e.height){var g=Math.round((e.height-u.img.height)/2),m=Math.round((e.width-u.img.width)/2);switch(f){default:case d.CENTER:u.img.top=g,u.img.left=m;break;case d.LEFT:u.img.left=0,u.img.top=g;break;case d.RIGHT:u.img.right=0,u.img.top=g;break;case d.TOP:u.img.left=m,u.img.top=0;break;case d.BOTTOM:u.img.left=m,u.img.bottom=0;break;case d.TOP_RIGHT:u.img.right=0,u.img.top=0;break;case d.TOP_LEFT:u.img.left=0,u.img.top=0;break;case d.BOTTOM_RIGHT:u.img.right=0,u.img.bottom=0;break;case d.BOTTOM_LEFT:u.img.left=0,u.img.bottom=0}}return c}}}])},function(t,e,n){var r=n(0),i=r.setAttributes,o=r.setStyle;t.exports=function(t,e){return function(t){var r,a;function s(){var e;return e=t.call(this)||this,n.e(1).then(n.t.bind(null,16,7)).then(function(t){e.createLayout=t.default,e.measures&&!e.layout&&e.reLayout()}),e}a=t,(r=s).prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a;var c=s.prototype;return c.reLayout=function(){var t=this;this.parentId=this.dataset.parentId,this.parent=this.parentId&&document.getElementById(this.parentId),this.parent&&(this.items=this.dataset.items&&JSON.parse(this.dataset.items.replace(/'/g,'"')),this.items&&this.items.length>0&&(this.styleParams=this.dataset.options&&JSON.parse(this.dataset.options.replace(/'/g,'"')),this.styleParams&&"object"==typeof this.styleParams&&(e.mutationService.measure(function(){t.measures=t.parent.getBoundingClientRect(),"function"==typeof t.createLayout&&(t.layout=t.createLayout({items:t.items,styleParams:t.styleParams,container:t.measures}))}),e.mutationService.mutate(function(){"object"==typeof t.measures&&i(t.parent,{"data-top":t.measures.top,"data-width":t.measures.width,"data-height":t.measures.height}),t.layout&&t.layout.items&&t.layout.items.length>0&&t.parent.querySelectorAll(".gallery-item-container").forEach(function(e,n){var r,i,a;o(e,(r=t.layout.items[n],i=t.styleParams,a=i.isRTL,{top:r.offset.top,left:a?"auto":r.offset.left,right:a?r.offset.left:"auto",width:r.width,height:r.height+(i.externalInfoHeight||0)}))})}))))},c.connectedCallback=function(){void 0!==this.dataset.observeResize?t.prototype.connectedCallback.call(this):this.reLayout()},s}(t)}},function(t,e,n){n(4),n(5),t.exports=n(6)},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=u(t,e,n);if("normal"===c.type){if(r=n.done?d:h,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",f="executing",d="completed",p={};function g(){}function m(){}function b(){}var v={};v[o]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(L([])));_&&_!==n&&r.call(_,o)&&(v=_);var w=b.prototype=g.prototype=Object.create(v);function T(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,i){function o(){return new Promise(function(e,o){!function e(n,i,o,a){var s=u(t[n],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(l).then(function(t){c.value=t,o(c)},function(t){return e("throw",t,o,a)})}a(s.arg)}(n,i,e,o)})}return e=e?e.then(o,o):o()}}function A(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function L(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";n.p="".concat(window.boltBase,"/bolt-main/app/")},function(t,e,n){"use strict";n(7);var r=l(n(15)),i=l(n(1)),o=l(n(9)),a=l(n(10)),s=l(n(12)),c=l(n(13)),u=n(14);function l(t){return t&&t.__esModule?t:{default:t}}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=(0,s.default)(window),d=(0,c.default)(window.rendererModel.runningExperiments,f,"viewer"),p=function(t){var e=d[t];return!(!e||"old"===e||"false"===e)},g=window.serviceTopology,m={staticMediaUrl:g.staticMediaUrl,mediaRootUrl:g.mediaRootUrl,experiments:{},isViewerMode:!window.rendererModel.previewMode,devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio},b={init:function(t){return new a.default(t)}},v={init:function(t){return window.addEventListener("resize",t)}},y={bi:[],tpaBi:[]},_={initialized:!1,biData:{},reportBI:function(t,e){y.bi.push({reportDef:t,params:e})},reportTpaBiEvent:function(t){var e=t.reportDef,n=t.params,r=t.compId,i=t.isWixTPA,o=t.widgetId,a=t.appDefinitionId;if(this.initialized){var s=this.biData.getTime(),c={compId:r,pageId:this.biData.getPageId(),pageNo:this.biData.getPageNumber(),ssr:!1,loadingTime:s.loadingTime,totalLoadingTime:s.totalLoadingTime};i?(c.widgetId=o,c.appDefinitionId=a):n&&n.widgetId&&n.appDefinitionId||(c.externalWidgetId=o,c.externalAppDefinitionId=a);var u=function(t){for(var e=1;e0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),l&&(this.fontFaceSet_=document.fonts,this.fontFaceSet_.addEventListener("loadingdone",this.refresh)),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.fontFaceSet_&&this.fontFaceSet_.removeEventListener("loadingdone",this.refresh),this.mutationsObserver_=null,this.fontFaceSet_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),A="undefined"!=typeof WeakMap?new WeakMap:new n,I=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new E(e,n,this);A.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){I.prototype[t]=function(){var e;return(e=A.get(this))[t].apply(e,arguments)}});var S=void 0!==i.ResizeObserver?i.ResizeObserver:I;e.default=S}.call(this,n(11))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]".concat(e,"=([^&#]*)")).exec(t);return n&&n[1]?decodeURIComponent(n[1]).replace(/\+/g," "):""}function i(t,e){return"true"===r(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return{getParameterFromQuery:r,isParameterTrueInQuery:i,getParameterByName:r.bind(null,t.location.search),isParameterTrue:i.bind(null,t.location.search)}}},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){var o=new RegExp("^(".concat(n,":)(.*)|(.*)$")),a={};Object.keys(t).forEach(function(e){a[e]=t[e]});var s=function(t){var e=r(t,2),n=e[0],i=e[1];a[n]=i},c=function(t){return t.replace(o,"$2")},u=function(t,n){var r=e.getParameterByName(t,i);-1!==r.indexOf(":")&&(r=function(t){return t.split(";").map(c).filter(Boolean).join(",")}(r)),r.split(",").filter(Boolean).map(function(t){return[t,n]}).forEach(s)};return u("experiments","new"),u("experimentsoff","old"),function(){e.getParameterByName("".concat(n,"exp"),i).split(",").filter(Boolean).map(function(t){return t.split(":")}).map(function(t){var e=r(t,2);return[e[0],e[1]||"new"]}).forEach(s)}(),a}},function(t,e,n){"use strict";t.exports={prefersReducedMotion:function(t){return!(!(t=t||("undefined"!=typeof window?window:void 0))||!t.matchMedia)&&t.matchMedia("(prefers-reduced-motion: reduce)").matches}}},function(t,e,n){"use strict";n.r(e);var r=function(t,e,n){var r=(Array.isArray(e)?e:e.split(".")).reduce(function(t,e){return t&&void 0!==t[e]?t[e]:null},t);return null!==r?r:n},i=function(t,e){return(Array.isArray(e)?e:[e]).reduce(function(e,n){var i,o=r(t,n);return void 0!==o?Object.assign(e,((i={})[n]=o,i)):e},{})},o=function(t,e){var n=t.reduce(function(t,n){return t[e(n)]=n,t},{});return Object.values(n)},a=function(t){return t&&t.split?t.split(";").reduce(function(t,e){var n=e.split(":");return n[0]&&n[1]&&(t[n[0].trim()]=n[1].trim()),t},{}):{}},s=function(t){var e=!1;return function(){for(var n=arguments.length,r=new Array(n),i=0;it)return null;if(e){if(n){var l=Math.floor(t/r.length),h=r.map(function(){return l});if((c=l*r.length)window.innerHeight/2},E=function(t,e,n,r){var i=e.width,o=e.height,a=e.alignButtons,s=e.hoverListPosition,c=e.menuItemContainerExtraPixels,u=e.absoluteLeft,l=function(t,e,n,r,i,o,a,s,c){var u="0px",l="auto",h=o.left,f=o.width;("left"===e?u="left"===i?0:h+t.left+"px":"right"===e?(l="right"===i?0:r-h-f-t.right+"px",u="auto"):"left"===i?u=h+(f+t.left-n)/2+"px":"right"===i?(u="auto",l=(f+t.right-(n+t.width))/2+"px"):u=t.left+h+(f-(n+t.width))/2+"px","auto"!==u)&&(u=a+parseInt(u,10)<0?0:u);"auto"!==l&&(l=s-parseInt(l,10)>c?0:l);return{moreContainerLeft:u,moreContainerRight:l}}(c,a,r,i,s,n,u,u+i,e.bodyClientWidth);return{left:l.moreContainerLeft,right:l.moreContainerRight,top:e.needToOpenMenuUp?"auto":o+"px",bottom:e.needToOpenMenuUp?o+"px":"auto"}},A=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},I={measure:function(t){var e={},n={};n[t]=document.getElementById(""+t);var r,i,o=(r=n[t],(i=+Object(g.getData)(r,"numItems"))<=0||i>Number.MAX_SAFE_INTEGER?[]:new Array(i).fill(0).map(function(t,e){return String(e)})),a=function(t){return["moreContainer","itemsContainer","dropWrapper"].concat(t,["__more__"])}(o);a.forEach(function(e){var r=""+t+e;n[r]=document.getElementById(""+r)}),e.children=function(t,e,n,r){var i={};return r.forEach(function(e){var r=""+t+e,o=n[r];o&&(i[r]={width:o.offsetWidth,height:o.offsetHeight})}),i}(t,0,n,a);var s=n[t],c=n[t+"itemsContainer"],u=c.childNodes,l=n[t+"moreContainer"],h=l.childNodes,f=Object(g.getData)(s,"stretchButtonsToMenuWidth"),d=Object(g.getData)(s,"sameWidthButtons"),p=s.getBoundingClientRect();e.absoluteLeft=p.left,e.bodyClientWidth=document.body.clientWidth,e.alignButtons=Object(g.getData)(s,"dropalign"),e.hoverListPosition=Object(g.getData)(s,"drophposition"),e.menuBorderY=parseInt(Object(g.getData)(s,"menuborderY"),10),e.ribbonExtra=parseInt(Object(g.getData)(s,"ribbonExtra"),10),e.ribbonEls=parseInt(Object(g.getData)(s,"ribbonEls"),10),e.labelPad=parseInt(Object(g.getData)(s,"labelPad"),10),e.menuButtonBorder=parseInt(Object(g.getData)(s,"menubtnBorder"),10),e.menuItemContainerMargins=function(t){var e=t.lastChild,n=window.getComputedStyle(e);return(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0)}(c),e.menuItemContainerExtraPixels=function(t,e){var n=window.getComputedStyle(t),r=w(n.borderTopWidth)+w(n.paddingTop),i=w(n.borderBottomWidth)+w(n.paddingBottom),o=w(n.borderLeftWidth)+w(n.paddingLeft),a=w(n.borderRightWidth)+w(n.paddingRight);return e&&(r+=w(n.marginTop),i+=w(n.marginBottom),o+=w(n.marginLeft),a+=w(n.marginRight)),{top:r,bottom:i,left:o,right:a,height:r+i,width:o+a}}(c,!0),e.needToOpenMenuUp=T(s),e.menuItemMarginForAllChildren=!f||"false"!==c.getAttribute("data-marginAllChildren"),e.moreSubItem=[],e.labelWidths={},e.linkIds={},e.parentId={},e.menuItems={},e.labels={},h.forEach(function(t,r){e.parentId[t.id]=Object(g.getData)(t,"parentId");var i=Object(g.getData)(t,"dataId");e.menuItems[i]={dataId:i,parentId:Object(g.getData)(t,"parentId"),moreDOMid:t.id,moreIndex:r},n[t.id]=t;var o=t.querySelector("p");n[o.id]=o,e.labels[o.id]={width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,lineHeight:parseInt(window.getComputedStyle(o).fontSize,10)},e.moreSubItem.push(t.id)}),u.forEach(function(t,r){var i=Object(g.getData)(t,"dataId");e.menuItems[i]=e.menuItems[i]||{},e.menuItems[i].menuIndex=r,e.menuItems[i].menuDOMid=t.id,e.children[t.id].left=t.offsetLeft;var o=t.querySelector("p");n[o.id]=o,e.labelWidths[o.id]=function(t){var e=window.getComputedStyle(t);return parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10)}(o);var a=t.querySelector("p");n[a.id]=a,e.linkIds[t.id]=a.id});var m=s.offsetHeight;e.height=m,e.width=s.offsetWidth,e.lineHeight=function(t,e){return t-e.menuBorderY-e.labelPad-e.ribbonEls-e.menuButtonBorder-e.ribbonExtra+"px"}(m,e);var b=function(t,e,n,r,i){var o=e.width;e.hasOriginalGapData={},e.originalGapBetweenTextAndBtn={};var a=i.map(function(n){var i,o=r[t+n],a=Object(g.getData)(o,"originalGapBetweenTextAndBtn");return void 0===a?(e.hasOriginalGapData[n]=!1,i=e.children[t+n].width-e.labelWidths[t+n+"label"],e.originalGapBetweenTextAndBtn[t+n]=i):(e.hasOriginalGapData[n]=!0,i=parseInt(a,10)),e.children[t+n].width>0?e.labelWidths[t+n+"label"]+i:0}),s=a.pop(),c=n.sameWidthButtons,u=n.stretchButtonsToMenuWidth,l=!1,h=e.menuItemContainerMargins,f=e.menuItemMarginForAllChildren,d=e.menuItemContainerExtraPixels,p=function(t){return t.reduce(function(t,e){return t>e?t:e},-1/0)}(a),m=_(o,c,u,a,h,p,f,d);if(!m){for(var b=1;b<=a.length;b++)if(m=_(o,c,u,a.slice(0,-1*b).concat(s),h,p,f,d)){l=!0;break}m||(l=!0,m=[s])}if(l){var v=m[m.length-1];for(m=m.slice(0,-1);m.length0,m=t+r[f];u=n.linkIds[m],p?(s++,c=m,Object(g.setStyle)(e[m],{width:d+"px",height:h+"px",position:"relative","box-sizing":"border-box",overflow:"visible"}),Object(g.setStyle)(e[m+"label"],{"line-height":l}),Object(g.setAttributes)(e[m],{"aria-hidden":!1}),Object(g.setAttributes)(e[u],{tabIndex:0})):(Object(g.setStyle)(e[m],{height:"0px",overflow:"hidden",position:"absolute"}),Object(g.setAttributes)(e[m],{"aria-hidden":!0}),Object(g.setAttributes)(e[u],{tabIndex:-1}))}1===s&&(Object(g.setData)(e[t+"moreContainer"],{listposition:"lonely"}),Object(g.setData)(e[c],{listposition:"lonely"}))}(t,n,e,s)}};function S(t,e){for(var n=0;n=t.length)break;r=t[n++]}else{if((n=t.next()).done)break;r=n.value}var i=r;i.disconnect(),i=null}this.childrenAttributesObservers=null}},i}(L(HTMLElement))},k={APP_IFRAME_START_LOADING:{eventId:642,src:42,params:{widget_id:"widgetId",widget_name:"widgetName",instance_id:"compId",appId:"appDefinitionId",loading_time:"loadingTime",pid:"pageId",pn:"pageNo",iss:"ssr",tts:"totalLoadingTime",external_app_id:"externalAppDefinitionId",external_widget_id:"externalWidgetId",lazy_load:"lazyLoad"}}};function P(t,e){for(var n=0;n=0&&t.bottom-t.height<=e},e.loadImage=function(t,e,n){var r=e.screenHeight,i=e.boundingRect,o=e.withScrollEffectVars;n||!this.intersectionObserver||this.isImageInViewPort(i,r)?this.setImageSource(t):(this.intersectionObserver.unobserve(t),this.intersectionObserver.observe(t)),o&&this.scrollEffectsIntersectionObserver&&(this.scrollEffectsIntersectionObserver.unobserve(t),this.scrollEffectsIntersectionObserver.observe(t))},e.onImageDisconnected=function(t){this.intersectionObserver&&this.intersectionObserver.unobserve(t),this.scrollEffectsIntersectionObserver&&this.scrollEffectsIntersectionObserver.unobserve(t)},e.setSrcAttribute=function(t,e,n){p(t,e)!==n&&(e?t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n):t.src=n)},e.setSourceSetAttribute=function(t,e){t.srcset!==e&&(t.srcset=e)},e.setImageSource=function(t){var e=this,n="true"===t.dataset.isSvg,r=t.querySelector(n?"image":"img"),i=t.querySelector("picture");this.setSrcAttribute(r,n,t.dataset.src),i&&Array.from(i.querySelectorAll("source")).forEach(function(t){e.setSourceSetAttribute(t,t.dataset.srcset)})},e.getViewPortIntersectionHandler=function(){var t=this;return function(e,n){e.filter(function(t){return t.isIntersecting}).forEach(function(e){var r=e.target;t.setImageSource(r),n.unobserve(r)})}},e.getScrollEffectsIntersectionHandler=function(){var t=this;return function(e){return e.forEach(function(e){var n=e.target;e.isIntersecting?t.mutationService.mutate(function(){return n.classList.add("scroll-css-var--scrollEffect")}):t.mutationService.mutate(function(){return n.classList.remove("scroll-css-var--scrollEffect")})})}},t}(),j={IMAGE_UPSCALING:{eventId:348,adapter:"ugc-viewer",params:{ow:"originalWidth",oh:"originalHeight",tw:"targetWidth",th:"targetHeight",dpr:"devicePixelRatio",um:"upscaleMethod",url:"url"}}};function B(t){var e=t,n=(e.width,e.height,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(e,["width","height"])),r={};for(t in n)""!==n[t]&&(r[t]=n[t]);return r}var D={measure:function(t,e,n,r){var i=r.containerId,o=r.isSvgImage,a=r.isSvgMask,s=n.image;if(s){var c=p(s,o),u="true"===n[t].getAttribute("data-has-bg-scroll-effect");e.width=u?n[i].offsetWidth:n[t].offsetWidth,e.height=n[t].offsetHeight,e.containerTop=n[i].offsetTop,e.isZoomed=n[t].getAttribute("data-image-zoomed"),e.isSvgImage=o,e.imgSrc=c,e.containerId=i,e.renderedStyles=n[t].getAttribute("data-style"),e.screenHeight=Object(g.getScreenHeight)(),e.boundingRect=n[t].getBoundingClientRect(),a&&(e.bBox=function(t){if(t){var e=t.dataset.type;if(e&&"ugc"!==e)if(!t.dataset.bbox){var n=t.getBBox();return n.x+" "+n.y+" "+n.width+" "+n.height}}return null}(n.maskSvg))}},patch:function(t,e,n,i,o,s,c,u){var l,f=a(e.renderedStyles),d=i.imageData,p=Object.assign({},i,{containerWidth:e.isZoomed?d.width:e.width,containerHeight:e.isZoomed?d.height:e.height,displayMode:d.displayMode});if(e.isSvgImage)l=h(p,s,"svg"),Object(g.setAttributes)(n.svg,e.isZoomed?l.attr.container:{});else{l=h(p,s,"img");var m=r(l,["css","img"]);Object(g.setStyle)(n.image,m)}e.bBox&&n.maskSvg&&Object(g.setAttributes)(n.maskSvg,{viewBox:e.bBox});var b=function(t,e){var n=B(t);return"number"==typeof e&&(n.opacity=e),n}(f,d.opacity);Object(g.setStyle)(n[t],b);var v=r(l,"uri"),y=e.imgSrc;Object(g.setAttributes)(n[t],{"data-src":v}),Object(g.setAttributes)(n[t],{"data-has-ssr-src":""}),c&&(!function(t,e,n,r,i){var o=i.uri.match(/,lg_(\d)/);e.isViewerMode&&i.uri!==r.currentSrc&&o&&t.reportBI(j.IMAGE_UPSCALING,{originalWidth:n.imageData.width,originalHeight:n.imageData.height,targetWidth:Math.round(n.containerWidth),targetHeight:Math.round(n.containerHeight),upscaleMethod:"1"===o[1]?"classic":"super",devicePixelRatio:Math.floor(100*e.devicePixelRatio),url:r.src})}(o.biService,s,p,{src:v,currentSrc:y},l),o.imageLoader.loadImage(n[t],{screenHeight:e.screenHeight,boundingRect:e.boundingRect},u))}},H="--compH",W="--top",U="--scroll";function Y(t,e,n){return void 0===n&&(n=1.5),{parallax:t.height*n,fixed:t.screenHeight}[e]||t.height}var z={measure:function(t,e,n,r){var i=r.containerId,o=n.image;if(o){var a=p(o);e.width=n[t].offsetWidth,e.height=n[t].offsetHeight,e.containerTop=n[i].offsetTop,e.imgSrc=a,e.containerId=i,e.screenHeight=Object(g.getScreenHeight)(),e.boundingRect=n[t].getBoundingClientRect(),e.documentScroll=Object(g.getDocumentScrollPosition)()}},patch:function(t,e,n,i,o,a,s){var c,u,l=i.imageData,f=i.parallaxSpeed,d=Object.assign({},i,{containerWidth:e.width,containerHeight:Y(e,l.scrollEffect,f),displayMode:l.displayMode}),p=(c=l.opacity,u={},"number"==typeof c&&(u.opacity=c),u);Object(g.setStyle)(n[t],p);var m=h(d,a,"img"),b=r(m,"uri");Object(g.setAttributes)(n[t],{"data-src":b});var v,y,_=(v=l.scrollEffect,void 0===(y=i.sourceSets)&&(y=[]),"parallax"===v||y.some(function(t){return"parallax"===t.scrollEffect}));_&&Object(g.setCssVars)(n[t],function(t){var e;return(e={})[H]=t.height,e[W]=Math.ceil(t.boundingRect.top)+t.documentScroll,e[U]=t.documentScroll,e}(e));var w=function(t){var e=r(t,["css","img"]);return{width:"100%",objectFit:e?e.objectFit:void 0}}(m);Object(g.setStyle)(n.image,w),n.picture&&function(t,e,n,i){var o=e.sourceSets;if(o&&o.length){var a=JSON.parse(JSON.stringify(e)),s=a.parallaxSpeed;o.forEach(function(e){var o=i.querySelector("source[media='"+e.mediaQuery+"']");a.imageData.crop=e.crop,a.imageData.displayMode=e.displayMode,a.imageData.focalPoint=e.focalPoint,a.containerHeight=Y(t,e.scrollEffect,s);var c=h(a,n,"img");Object(g.setAttributes)(o,{"data-srcset":r(c,"uri")})})}}(e,d,a,n.picture),s&&o.imageLoader.loadImage(n[t],{screenHeight:e.screenHeight,boundingRect:e.boundingRect,withScrollEffectVars:_})}};function V(t,e){for(var n=0;nn*r})||t[t.length-1]}(u,v),h,f,d);return{videoSourceUrl:_,needsSrcUpdate:function(t,e){var n=t.networkState===t.NETWORK_NO_SOURCE,r=!t.currentSrc.endsWith(e);return e&&(r||n)}(t,_),videoStyle:{width:v.width,height:v.height,left:y.left,top:y.top}}},mutate:function(t,e,n,r,i,o,a,s,c,u,l){Object(g.setAttributes)(n,{width:r.width,height:r.height}),!e?(!function(t,e,n,r,i,o){o&&e.paused&&(n.style.opacity="1",e.style.opacity="0");e.paused&&(t||o)&&(e.ontimeupdate=null,e.onseeked=null,e.onplay=null,!o&&i?e.ontimeupdate=function(){e.currentTime>0&&(e.ontimeupdate=null,e.onseeked=function(){e.onseeked=null,et(e,n,r)},e.currentTime=0)}:e.onplay=function(){e.onplay=null,et(e,n,r)})}(a,n,t,s,i,l),i?n.setAttribute("autoplay",""):n.removeAttribute("autoplay"),Object(g.setStyle)(n,r)):Object(g.setStyle)(e,r),function(t,e,n){t&&(e.src=n,e.load())}(a,n,o),n.playbackRate=u}},K=l.a.alignTypes,tt=(($={})[K.CENTER]=function(t){return{left:t.horizontalMiddle,top:t.verticalMiddle}},$[K.LEFT]=function(t){return{left:0,top:t.verticalMiddle}},$[K.RIGHT]=function(t){return{left:t.left,top:t.verticalMiddle}},$[K.TOP]=function(t){return{left:t.horizontalMiddle,top:0}},$[K.BOTTOM]=function(t){return{left:t.horizontalMiddle,top:t.top}},$[K.TOP_LEFT]=function(){return{left:0,top:0}},$[K.TOP_RIGHT]=function(t){return{left:t.left,top:0}},$[K.BOTTOM_LEFT]=function(t){return{left:0,top:t.top}},$[K.BOTTOM_RIGHT]=function(t){return{left:t.left,top:t.top}},$);function et(t,e,n){"fade"===n&&(e.style.transition="opacity 1.6s ease-out"),e.style.opacity="0",t.style.opacity="1"}function nt(t,e){for(var n=0;n